package ru.cybertek.domain;

/**
 * @author Dmitry Demyankov
 * @version $Revision: 52 $
 * 
 *         (C) Copyright 2009 CyberTek Ltd. All rights reserved.
 */
public class Bank extends StoredEntity
{
    private String fullName;

    private String shortName;

    private String bic;

    private String currentAccount;

    private Address address;

    /**
     * default constructor for Bank
     */
    public Bank() {}
    
    /**
     * constructor for existing record
     * 
     * @param id - id of record in DB
     */
    public Bank (Integer id)
    {
    	super.setId(id);
    }
    

    /**
     * Getter for property fullName.
     * 
     * @return the fullName
     */
    public String getFullName()
    {
        return fullName;
    }

    /**
     * Setter for property fullName.
     * 
     * @param fullName
     *            the fullName to set
     */
    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    /**
     * Getter for property shortName.
     * 
     * @return the shortName
     */
    public String getShortName()
    {
        return shortName;
    }

    /**
     * Setter for property shortName.
     * 
     * @param shortName
     *            the shortName to set
     */
    public void setShortName(String shortName)
    {
        this.shortName = shortName;
    }

    /**
     * Getter for property bic.
     * 
     * @return the bic
     */
    public String getBic()
    {
        return bic;
    }

    /**
     * Setter for property bic.
     * 
     * @param bic
     *            the bic to set
     */
    public void setBic(String bic)
    {
        this.bic = bic;
    }

    /**
     * Getter for property currentAccount.
     * 
     * @return the currentAccount
     */
    public String getCurrentAccount()
    {
        return currentAccount;
    }

    /**
     * Setter for property currentAccount.
     * 
     * @param currentAccount
     *            the currentAccount to set
     */
    public void setCurrentAccount(String currentAccount)
    {
        this.currentAccount = currentAccount;
    }

    /**
     * Getter for property address.
     * 
     * @return the address
     */
    public Address getAddress()
    {
        return address;
    }

    /**
     * Setter for property address.
     * 
     * @param address
     *            the address to set
     */
    public void setAddress(Address address)
    {
        this.address = address;
    }
    
    public String toString()
    {
    	return shortName;
    }
    
    public String getLabel()
    {
    	return this.toString();
    }
}
